﻿using Mododor.DialogWindow;
using Mododor.DialogWindow.DialogWindowViewModels;
using Mododor.ViewModels;
using Mododor.ViewModels.CompanyInfoViewModels;
using Mododor.Views;
using Mododor.Views.CompanyInfoViews;
using Prism.Ioc;
using System.Windows;

namespace Mododor
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<MainWindow>();
        }

        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterDialogWindow<DialogWindowView>("DialogWindowView");

            containerRegistry.RegisterDialog<AskingDialogView, AskingDialogViewModel>();

            containerRegistry.RegisterForNavigation<CompanyView, CompanyViewModel>();
            containerRegistry.RegisterForNavigation<CompanyInfoView, CompanyInfoViewModel>();
            containerRegistry.RegisterForNavigation<ClientInfoView, ClientInfoViewModel>();
            containerRegistry.RegisterForNavigation<ContractInfoView, ContractInfoViewModel>();
        }
    }
}
